package icu.lookyousmileface.pojo;

import com.baomidou.mybatisplus.annotation.*;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.stereotype.Component;

import java.util.Date;


/**
 * @author starrysky
 * @title: User
 * @projectName mybaits_plus_final
 * @description: pojo-user
 * @date 2021/1/3119:30
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@Component
public class User {

    @TableId(type = IdType.ASSIGN_ID)
    private Long id;
    private String name;
    private Integer age;

    @TableLogic
    private Long deleted;
    @Version
    private Integer version;
    private String email;

    @TableField(fill = FieldFill.INSERT)
    private Date createTime;
    @TableField(fill = FieldFill.INSERT_UPDATE)
    private Date updateTime;
}
